package paywithdrawlogic

import (
	"context"

	"gitee.com/liuxuezhan/ar-platform/assets-rpc/internal/dao/model/withdraw"
	"gitee.com/liuxuezhan/ar-platform/assets-rpc/internal/svc"
	"gitee.com/liuxuezhan/ar-platform/assets-rpc/rpc"
	"github.com/zeromicro/go-zero/core/logx"
)

type WithdrawChannelListPageLogic struct {
	ctx    context.Context
	svcCtx *svc.ServiceContext
	logx.Logger
}

func NewWithdrawChannelListPageLogic(ctx context.Context, svcCtx *svc.ServiceContext) *WithdrawChannelListPageLogic {
	return &WithdrawChannelListPageLogic{
		ctx:    ctx,
		svcCtx: svcCtx,
		Logger: logx.WithContext(ctx),
	}
}

// -------------------b端渠道管理----------------------------------------------------------
func (l *WithdrawChannelListPageLogic) WithdrawChannelListPage(in *rpc.WithdrawChannelListPageReq) (*rpc.WithdrawChannelListPageRes, error) {
	// todo: add your logic here and delete this line

	m := withdraw.NewWithdrawChannelModel(l.ctx, l.svcCtx.Db)
	return m.WithdrawChannelListPage(in)
}
